<?php
/**
 * 
 * @author tangbl
 *
 */
class TestAction extends CommonAction{
	
	public function _initialize() {
		
	}
	
	public function index() {
		
		vendor("Qiniu/io");
		vendor("Qiniu/rs");
		vendor("Qiniu/fop");
		
		$bucket = 'etackle';
		$key    = 'pic.jpg';
		$key1   = 'file_name1';
		$domain = 'etackle.qiniudn.com';
		
		$accessKey = 'c5y1q8KUtBGQ9Ctu0_W67MHvDW-UHA-J86mpQPod';
		$secretKey = 'YEK3LN_fLhBBlng2pxyuAjzfTtQKSzWC20sUuUgE';
		Qiniu_SetKeys($accessKey, $secretKey);
    	$putPolicy = new Qiniu_RS_PutPolicy($bucket);
    	$Token = $putPolicy->Token(null);
	}
	
	
}
